Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low memory mode #4

Merged
merged 4 commits into from
Mar 1, 2024
Merged

Low memory mode #4

merged 4 commits into from
Mar 1, 2024

Conversation

Theodlz
Copy link
Owner

@Theodlz Theodlz commented Feb 29, 2024

On a system with low memory, you can call noew frigate with the --low_memory=True flag to reduce memory usage.

This will save each subset of alerts to disk, and concatenate them at the end instead of concatenating as the batched queries return. That way we avoid growing the memory of the main process while the individual threads are running.

In the future, we want to expand on that mode to reduce the nb of alerts fetched per batch query to reduce the memory usage even more.

@Theodlz Theodlz merged commit 7876868 into main Mar 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant